import i18n from "@/plugin/lang/i18n";

class quick {

    /**
     * 
     * @param lang 切换语言
     * @param isReload 切换后是否刷新
     */
    changeLang(lang: string, isReload: boolean) {
        console.log(lang, isReload);
        const { locale } = i18n.global
        locale.value = lang
        localStorage.setItem('LANG', lang)
        if (isReload) {
            window.location.reload()
        }



    }

}

export const uu: any = new quick()